/* Individual feature info */
.lunaserv_feature_info {
	float: left;
	margin: 0;
	padding: 10px 6px;
}

.lunaserv_layer_name {
	clear: both;
	text-align: center;
	font-size: 18px;
	text-shadow: 2px 2px 2px rgb(0, 0, 0);
	color: white;
	background-color: #333;
}

/* 侧边导航栏样式 */
.side-navigation {
  position: fixed;
  left: 0;
  top: 0;
  width: 40px;
  height: 100vh;
  background-color: #000000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px;
  z-index: 1000;
}

.nav-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  margin-bottom: 15px;
  border-radius: 4px;
  transition: all 0.3s;
}

.nav-icon:hover {
  background-color: #333;
  transform: scale(1.1);
}

.nav-icon.active {
  background-color: black;
}

.nav-icon .icon {
  font-size: 18px;
}

/* 面板背景色 */
.panel {
  background-color: #1F232A!important;
}

/* 调整主容器的左边距，为侧边导航栏腾出空间 */
#lunaserv_container,
.lunaserv_text_entry_area,
.panel-group,
#scale_bar {
  margin-left: 40px;
}

/* lunaserv.css overwrites */
#map_viewer {
	background-color: white;
}

/*#lunaserv_map {
margin-top: 50px !important;
}*/
.olControlPanZoomBar {
	position: absolute;
	left: auto !important;
	right: 108px !important;
	top: auto !important;
	bottom: 337px !important;
}

/* Get rid of the globe thing on the zoom bar*/
.olButton:nth-child(1) {
	display: none;
}

.olButton:nth-child(2) {
	display: none;
}

.olButton:nth-child(3) {
	display: none;
}

.olButton:nth-child(4) {
	display: none;
}

.olButton:nth-child(5) {
	display: none;
}

div.olMapViewport {
	position: static !important;
}

/* new stuff */
#scale_bar {
	z-index: 1001;
	margin: 1.6em 0.6em;
	background-color: rgba(0, 0, 0, .75);
        position: absolute;
        left: 40px; /* 初始位置在左侧 */
        bottom: 10px; /* 固定在底部 */
        transition: left 0.01s ease; /* 添加过渡动画 */
}



.lat-lon-tracker {
	margin-left: 0.2em;
	margin-bottom: 0.4em;
}

#lunaserv_scaletext {
	margin-left: 0.2em;
	margin-bottom: 0.4em;
}

#lunaserv_scalebar {
	margin-left: 0.2em;
	margin-bottom: 0.4em;
}

#lunaserv_layer_legend {
	padding: 0;
	margin-left: 1.2em;
	margin-right: 1.2em;
	list-style: none;
	color: #FFFFFF;
}

.lunaserv_link {
	margin: 2px 0px 2px 60px;
}

.click-action {
	z-index: 1003;
	position: absolute;
	top: 45px;
	right: 10px;
	background-color: #000;
	border: 1px solid #222;
}

.click-action ul {
	padding-left: 8px;
	margin: 8px 0 0 0;
}

.click-action li {
	display: inline;
	padding-right: 3px;
	/*	margin: 2px;
	width: 55px;*/
}

.click-action label {
	padding-right: 6px;
}

/* Trick to use icons as inputs */
.click-action input {
	visibility: hidden;
}

input[value="feature"] {
	margin-top: -1px;
	margin-left: -2px
}

input[value="bounding-box"] {
	margin-top: 1px;
}

.radio-hack {
	width: 28px !important;
	height: 27px;
}

input,
button,
elect,
textarea {
	color: #242425;
}

.lunaserv_window_title {
	color: white;
	margin: -4px 4px 2px;
	text-align: center;
}

#lunaserv_feature_container {
	background-color: #222;
	padding: 2px 2px 2px 2px;
	border: 1px solid #333;
	box-shadow: 0px 2px 9px #222;
	z-index: 1050;
	display: none;
	position: absolute;
}

#lunaserv_features_titlebar {
	width: 100%;
}

#lunaserv_features_titlebar a {
	margin-right: 16px;
}

#lunaserv_selected_footprints {
	overflow-y: scroll !important;
	overflow-x: hidden !important;
	background-color:#1F232A;
}

.lunaserv_text_entry_item {
	display: inline;
}

.lunaserv_text_entry_button {
	margin: 12px auto;
}

.lunaserv_text_entry_item label {
	width: 111px;
}

.lat-lon-tracker div {
	display: inline;
}

.lat-lon-tracker label {
	margin-right: 0.4em;
}

.lunaserv_layer_group {
	margin-left: 18px;
	background-color: #1F232A;
	color: white;
}

.lunaserv_layer_group label {
	font-size: 16px !important;
    color: white;
}

.legend {
	height: 12px;
	width: 13px;
	border-radius: 6px;
	display: inline-block;
	margin: auto 6px 0px;
}

#apply_date_range {
	margin-top: 12px;
}

/* Bootstrap Edits */
a {
	color: #338BFF;
}

a:hover,
a:focus {
	color: #0056C8
}

.btn:hover,
.btn:focus {
	background-color: #818181;
}

body {
	overflow: hidden;
	font-family: 'LatoWeb', Helvetica, Arial, sans-serif;
	font-weight: 100;
}

h1 {
	font-weight: 100;
	margin: 0;
}

h2 {
	font-weight: 100;
	font-size: 30px
}

label {
	font-weight: 100;
}

.click-select {
	width: 22px;
	height: 19px
}

#point-of-interest {
	background: url('../images/crosshairs.png') no-repeat left top;
}

#get-footprint {
	background: url('../images/eye-white.png') no-repeat left top;
}

#bounding-box {
	background: url('../images/bounding-white.png') no-repeat left top;
}

/* FF browser style bug */
select,
option {
	color: #000
}

/* accordion and panel */
#accordion {
    border: 1px solid #242425;
    border-top: 0;
    width: 400px;
    position: absolute;
    left: 0px;
    top: 0px; /* 修改：将top值从80px改为0px，使侧边导航栏紧接在顶部导航栏下方 */
    z-index: 1004;
    height: 100vh; /* 添加：使侧边栏高度占满整个页面 */
    background: #1F232A !important; 
    /* 移除transition属性，避免与jQuery动画冲突 */
}

/* 隐藏导航栏时的样式 */
#accordion.collapsed {
    left: -400px;
}

.panel-default {
	border-color: #0d0d0d #242425 #1e1e1e;
}

.panel-heading {
	border-radius: 0;
}

.panel-default>.panel-heading {
	background-color: #1F232A;
	color: white !important;
}

.panel-title>a {
    color: white; /* 修改：将面板标题颜色改为白色，确保在深色背景下的可读性 */
	font-size: 16px;
	font-weight: bolder;
    text-decoration: none;
}

.panel-title>a:hover {
    color: orange; /* 修改：将面板标题悬停颜色改为浅灰色 */
}

.panel-group {
    margin-bottom: 0px;
}

.panel-group .panel {
    border-radius: 0px;
}

.panel-group .panel+.panel {
    margin: 0 !important;
}

.panel-collapse {
    background-color: #1F232A;
    color: white;
}

.panel-group .panel+.panel {
	margin: 0 !important;
}

.panel-default>.panel-heading+.panel-collapse>.panel-body {
	border-top-color: #131313;
}
/* FORMERLY INLINE */
.lunaserv_controls {
	position: absolute;
	width: 50em;
	height: 30em;
	top: 50%;
	left: 50%;
	z-index: 1000;
}

.lunaserv_controls_opaque {
	border-width: 1px;
	border-style: solid;
	border-color: #ddd;
	color: #5a5a5a;
	height: calc(100% - 42px);
	/* size of dialog minus height of header */
	/*	overflow-y: scroll;*/
}

/* responsive Query Results modal */
@media (max-width: 620px) {
	#lunaserv_feature_container {
		height: 100%;
		top: 260px;
		left: 0;
		margin-left: 0;
		width: 100% !important;
	}
}

/* NAVBAR ALWAYS MODAL */
@media (min-width: 768px) {
	.navbar-header {
		float: none;
	}

	.navbar-toggle {
		display: block;
		float: left;
	}

	.navbar-collapse.collapse {
		display: none !important;
	}

	.navbar-fixed-top,
	.navbar-fixed-bottom {
		transform: none;
		-webkit-transform: none;
	}
}

/* responsive menu */
@media (max-width: 620px) {
	#accordion {
		width: 100%;
	}

	.olControlPanZoomBar {
		left: 80% !important;
	}
}

.tour-tour {
	color: black;
}

a.navbar-right {
	float: right;
	margin: 15px;
}

.page-view-counter {
	float: right;
	margin: 15px;
}

/* General Mobile Fixes */
@media(max-width: 766px) {
	.navbar-toggle {
		float: left;
		margin-left: 15px;
	}
}

@media(max-width: 480px) {
/* scale controls are hard to use and unnecessary in a touch interface */
	#scale_bar,
	.olButton,
	#OpenLayers\.Control\.PanZoomBar_5_OpenLayers\.Map_6 {
		display: none;
	}

	.ui-resizable-handle {
		display: none !important;
	}
}

/* 地名弹出层样式 */
/* #divpopUp{
	position: absolute;
    overflow: hidden;
	top: 90px;
	left:0px;
    width: 457px;
    height: 550px;
    background-color: white;
    opacity: 1;
    border: 0px;
    z-index: 9999;
} */

.popup-portal {
	position: fixed;
	top: 0px;
	left: 0px;
	right: 0px;
	bottom: 0px;
	background-color: rgba(255, 255, 255, 0.3);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ecf0f1;
}

.popup-overlay {
	position: fixed;
	top: 0px;
	left: 0px;
	right: 0px;
	bottom: 0px;
	background-color: rgba(255, 255, 255, 0.3);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9990;
}

.popup-content {
	position: relative;
	top: auto;
	left: auto;
	right: auto;
	bottom: auto;
	border: 1px solid rgb(204, 204, 204);
	background: rgb(52, 73, 94);
	overflow: auto;
	border-radius: 4px;
	outline: none;
	padding: 12px;
	max-height: 80%;
	max-width: 80%;
	display: flex;
	flex-direction: column;
}


.bLTWri {
	display: grid;
	-webkit-box-align: baseline;
	align-items: baseline;
	max-width: 500px;
	grid-template: auto auto none;
}

.kadBmb {
	font-weight: 200;
	grid-column: 1 / auto;
	margin: 4px;
}

.kxaiRq {
	font-family: monospace;
	grid-column: 2 / auto;
	margin: 4px;
}

.popup-content a {
	color: #2980b9;
}

/* 图层说明样式 */
.ecCryF {
	background-color: #1F232A;
	font-size: 14px;
	cursor: default;
	/* padding-bottom: 8px; */
	border-bottom: 3px solid #e1e1e1;
	margin-bottom: 10px;
}

.ecCryF>div {
	margin: 4px 0px;
}

.ecCryF h3 {
	font-weight: 100;
	font-size: 14px;
	margin: 8px 0px 4px;
}

.ecCryF div {
	display: block;
	/* margin-block-start: 1em;
	margin-block-end: 1em; */
	margin-top: 3px;
	margin-bottom: 10px;
	margin-inline-start: 0px;
	margin-inline-end: 0px;
	text-indent: 2em;
}

.ecCryF img {
	display: block;
	padding: 8px 4px;
	max-width: 550px;
}


/* 关于我们 */
.about-us-div {
	display: grid;
	-webkit-box-align: baseline;
	align-items: baseline;
	max-width: 500px;
	grid-template: auto auto none;
}

.about-us-title {
	font-weight: 200;
	grid-column: 1 / auto;
	margin: 4px;
	color: #000;
}

.about-us-content {
	font-family: monospace;
	grid-column: 2 / auto;
	margin: 4px;
	color: #000;
}

/* 更新通知 */
.update_note-div {
	display: grid;
	-webkit-box-align: baseline;
	align-items: baseline;
	max-width: 500px;
	grid-template: auto auto none;
}

.update_note-title {
	font-weight: 200;
	grid-column: 1 / auto;
	margin: 4px;
	color: #000;
}

.update_note-content {
	font-family: monospace;
	grid-column: 1 / auto;
	margin: 4px;
	color: #000;
}

.webui-popover-title {
	color: #000 !important;
}

#lunaserv_layers {
    overflow: auto;
    background-color: #1F232A;
    color: white;
	height: 100%!important;
}

.lunaserv_layer_group {
    margin-left: 18px;
    background-color: #1F232A;
    color: white;
}

.lunaserv_layer_group label {
	font-size: 16px !important;
    color: white;
}

.toggle-button {
    position: fixed;
    left: 0px;
    top: 80px; /* 向下移动80px，与侧边栏对齐 */
    background-color: #2c2c2c;
    border: none;
    border-right: 1px solid #3c3c3c;
    padding: 10px;
    cursor: pointer;
    z-index: 1007;
    width: 60px;
    height: 50px;
    text-align: center;
    line-height: 30px;
    font-size: 18px;
    color: #1F232A;
    transition: background-color 0.2s ease;
}

.toggle-button:hover {
    background-color: #3c3c3c;
}

.toggle-button:active {
    background-color: #999;
}

.toggle-button > span {
    display: inline-block;
    vertical-align: middle;
    line-height: normal;
}
